﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dotnet.Code.Extend
{
    public static partial class Ext
    {
        public static void AddGObject(this Dictionary<string, object> dict, string key, object value)
        {
            object temp = dict.FirstOrDefault(t => t.Key == key).Key;
            if (temp != null)
                dict.Remove(key);
            dict.Add(key, value);
        }
    }
}
